package com.woniu.atms.vo.pre.ticket;

import com.woniu.atms.vo.PageInfoVO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.Valid;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @author 张奇
 * @title: PreTicketCheckedVO
 * @projectName g5_atms
 * @description:  车票状态vo 用于接收按状态查询的车票查询参数
 * @date 2022/1/19 16:53
 */
@Getter
@Setter
@ToString
public class PreTicketCheckedVO {
    @NotNull(message = "userId不能为null")
    @Min(value = 1,message = "id需为正整数")
    private Integer userId;
    @NotNull(message = "使用状态状态不能为null")
    @NotBlank(message = "使用状态不能为空字符串")
    @Size(max = 1,min = 1,message = "状态必须为1字符")
    private String checked;

    @Valid
    private PageInfoVO pageInfoVO;
}
